home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / September 96 / How to solve access exception d < prev    next >
Encoding:
Internet Message Format  |  1996-09-19  |  1.1 KB  |  [TEXT/ttxt]

  1. Subject:     How to solve access exception during part close?
  2. Sent:        9/16/96 5:04 PM
  3. Received:    9/16/96 5:04 PM
  4. From:        bobc@bcstec.ca.boeing.com (Bob Carpenter)
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List
  7.  
  8.  
  9. I'm getting an access exception when I try to close my part (via the
  10. window close box). In MacsBug it says: "access exception at somIsObj..."
  11. After I issue an "ea" in MacsBug I get a dialog saying: "The file
  12. was not found."
  13.  
  14. This seems to be happening because I have overridden the NewDocumentWindow
  15. method in my part. When I comment out the method it doesn't crash.
  16.  
  17. Since the window is instantiated with a plain-old C++ new, rather than
  18. an FW_CNew, I don't understand how it gets destructed - but surely it
  19. does since samples like ODFForm and ODFDraw do the same thing without
  20. crashing.
  21.  
  22. Any ideas on how I can solve this?
  23.  
  24. BTW: I'm using ODFLibrary 1.1b2 - if it matters. And all the other stuff
  25. is off DR5. Also using PPC w/CW9.
  26.  
  27. Thanks.
  28.  
  29. -- 
  30.  
  31. --BobC
  32.  
  33.   Bob Carpenter
  34.   Boeing Commercial Airplanes
  35.   bob.carpenter@boeing.com